import Taro from "@tarojs/taro";

export const uploadTransfer = (transfer: AddTransfer) => {
    return Taro.uploadFile({
        url: "http://127.0.0.1:8080/transfer/add",
        filePath: transfer.transferPic,
        name: "transferPic",
        formData: {
            orderId: String(transfer.orderId),
            amount: String(transfer.amount),
            fromTo: String(transfer.fromTo),
            transferTo: String(transfer.transferTo)
        }
    });
}